package com.axjy.service.impl;


import com.axjy.dao.GroupMapper;
import com.axjy.pojo.Group;
import com.axjy.service.GroupService;
import org.springframework.stereotype.Service;

import java.util.List;

import javax.annotation.Resource;

/**
 * Created by zjn on 2018/1/30.
 */
@Service("groupService")
public class GroupServiceImpl implements GroupService {

    @Resource
    private GroupMapper groupMapper;

    @Override
    public List<Group> list() {
        return groupMapper.list();
    }

    @Override
    public void add(String groupName) {
        groupMapper.add(groupName);
    }
}
